#!/usr/bin/env node

const Koa = require('koa'),//大写，类
      logger =require('./middleware/logger.js');

const app = new Koa(),//实例化
      log = console.log;


app.use(logger);

app.use((ctx,next)=>{   //M-hello
  //requset parse
  
  //make response
  ctx.body = 'hello Koa';
});

app.listen(8080);




